{include file='header.tpl' lightbox=true}
<fieldset id="upload">
<legend>上传图片</legend>
<div>
<form method="post" action="{geturl action='upload'}" enctype="multipart/form-data">
<input type="hidden" name="id" value="{$album->getId()}" />
<input type="file" name="image" />

<input class="submit" type="submit" value="上传图片" name="upload" />
</div>
<div>
<label for="intro">描述：</label>
<textarea id="intro"rows="2" cols="15" name="introduce">
</textarea>
</div>
</form>
</fieldset>
<fieldset id="images">
<legend>图片</legend>
{if $totalImage == 0}
   <p> 这个相册里还没有图片。</p>
{else}
    {foreach from=$images item=image}
        <div id="image">
            <p>
                <a href="
                {geturl action='set'}?action=cover&iid={$image->getId()}&aid={$album->getId()}">设为封面</a>
                <a href="
                {geturl action='set'}?action=del&iid={$image->getId()}&aid={$album->getId()}">删除图片</a>
            </p>
            <p>
                <a href="{imagefilename id=$image->getId() w=600}" rel="lightbox[view]">
                    <img src="{imagefilename id=$image->getId() w=150 h=150}" />
                </a>
            </p>
                <p>{$image->dateline|date_format:'%Y-%m-%d %H:%M'} </p>
                <p>{$image->introduce}</p>
        </div> 
    {/foreach}
{/if}
</fieldset>
{include file='footer.tpl'}